package com.acquisition.param.dto;

import com.alibaba.fastjson.annotation.JSONField;

/**
 * modbus rtu 参数
 * 对应SingleMonitorFactorParam
 *
 * @author wuqiwei
 * @date 2020/10/15
 */
public class SingleMonitorFactorConfig {

	@JSONField(name="monitorFactor")
	private String monitorFactor;

	@JSONField(name="factorName")
	private String factorName;

	@JSONField(name="serialPort")
	private String serialPort;

	@JSONField(name="protocolType")
	private int protocolType;

	@JSONField(name="slaveDeviceAddress")
	private int slaveDeviceAddress;

	@JSONField(name="register")
	private int register;

	@JSONField(name="dataType")
	private int dataType;

	@JSONField(name="radixPointSize")
	private int radixPointSize;

	public SingleMonitorFactorConfig() {
		super();
	}

	public SingleMonitorFactorConfig(String monitorFactor, String factorName, String serialPort, int protocolType,
									 int slaveDeviceAddress, int register, int dataType, int radixPointSize) {
		super();
		this.monitorFactor = monitorFactor;
		this.factorName = factorName;
		this.serialPort = serialPort;
		this.protocolType = protocolType;
		this.slaveDeviceAddress = slaveDeviceAddress;
		this.register = register;
		this.dataType = dataType;
		this.radixPointSize = radixPointSize;
	}

	public String getMonitorFactor() {
		return monitorFactor;
	}

	public void setMonitorFactor(String monitorFactor) {
		this.monitorFactor = monitorFactor;
	}

	public String getFactorName() {
		return factorName;
	}

	public void setFactorName(String factorName) {
		this.factorName = factorName;
	}

	public String getSerialPort() {
		return serialPort;
	}

	public void setSerialPort(String serialPort) {
		this.serialPort = serialPort;
	}

	public int getProtocolType() {
		return protocolType;
	}

	public void setProtocolType(int protocolType) {
		this.protocolType = protocolType;
	}

	public int getSlaveDeviceAddress() {
		return slaveDeviceAddress;
	}

	public void setSlaveDeviceAddress(int slaveDeviceAddress) {
		this.slaveDeviceAddress = slaveDeviceAddress;
	}

	public int getRegister() {
		return register;
	}

	public void setRegister(int register) {
		this.register = register;
	}

	public int getDataType() {
		return dataType;
	}

	public void setDataType(int dataType) {
		this.dataType = dataType;
	}

	public int getRadixPointSize() {
		return radixPointSize;
	}

	public void setRadixPointSize(int radixPointSize) {
		this.radixPointSize = radixPointSize;
	}

	@Override
	public String toString() {
		return "SingleMonitorFactorConfig [monitorFactor=" + monitorFactor + ", factorName=" + factorName
				+ ", serialPort=" + serialPort + ", protocolType=" + protocolType + ", slaveDeviceAddress="
				+ slaveDeviceAddress + ", register=" + register + ", dataType=" + dataType + ", radixPointSize="
				+ radixPointSize + "]";
	}

}
